//
//  IATokenManager.h
//  VoiceClass
//
//  Created by caoxiaobo on 2017/12/10.
//  Copyright © 2017年 YRX. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface IAToken : NSObject <NSCoding>

+ (instancetype)shareToken;

@property (nonatomic, copy) NSString *refresh_token;
@property (nonatomic, copy) NSString *expires_in;
@property (nonatomic, copy) NSString *scope;
@property (nonatomic, copy) NSString *session_key;
@property (nonatomic, copy) NSString *access_token;
@property (nonatomic, copy) NSString *session_secret;
@property (nonatomic, strong) NSDate *expires_time;

@end

@interface IATokenManager : NSObject

+ (IAToken *)readToken;

+ (void)requestTokenHanler:(void (^)(BOOL result, IAToken *token))handler;

@end
